PrintPRO 8 for ActiveX - User Guide > Concepts > State Diagram |
PrintPRO™ enables the application to select a printer, perform printer set up, create a print job, preview the print job, and send the print job to the printing device. These tasks can be illustrated with a state diagram:
The application is free to initiate printer selection, printer set up, print job creation, or raw data transfer.
Once PrintPRO has been created, the application may choose to select a printer. If no printer is selected, the default printer will be used. While a print job is in progress, the printer selection cannot be modified.
The application may chose to set up the printer, using either PrintPRO or the printer dialog. If no printer setup is conducted, the printer's default settings will be in effect. While a print job is in progress, the printer settings cannot be modified.
To bypass the print driver, the application can send raw data directly to the printer. Since the printer driver is by-passed, the data sent must be printer specific. The raw data may contain printer commands, codes and binary data. Large amounts of data may be sent to the printer using this technique.
The application calls PrintPRO methods to construct the document to be printed. Images, text, and drawings can be added to the print job.
At any point during job creation, the application can invoke a print preview to enable the user to view or print the page under construction.
Once the document or raw data to be sent has been finalized, the application calls EndPrintDoc or PrintRawDataEnd to send the print job to the printer spooler. PrintPRO is now done processing the job, and returns to a "No Session in Progress" state.